package com.teach.demo03;

/**
 * <pre>
 * -
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2021-04-06 10:22
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public class Test {

  public static void main(String[] args) {
    Number n = new Number();
    n.add(1);
    n.add(2);
    n.add(3);
    System.out.println(n.getResult());
    n = new Number();
    n.add(1).add(2).add(3);//方便，增加了理解难度
    //对象的链式调用
    System.out.println(n.getResult());
  }
}
